chapter relations and functions